package com.example.demo.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entry.Commcontent;
import com.example.demo.mapper.CommguildMapper;
import com.example.demo.service.CommcontentService;
import com.example.demo.mapper.CommcontentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Wrapper;
import java.util.List;

/**
* @author 16040
* @description 针对表【commcontent】的数据库操作Service实现
* @createDate 2022-05-04 18:16:02
*/
@Service
public class CommcontentServiceImpl extends ServiceImpl<CommcontentMapper, Commcontent>
implements CommcontentService{

    @Autowired
    CommcontentMapper commcontentMapper;

    @Override
    public List<Commcontent> getAll(String name) {
        return commcontentMapper.getAll(name);
    }

    @Override
    public Page<Commcontent> getPage(Page page, QueryWrapper queryWrapper) {
        return commcontentMapper.selectPage(page,queryWrapper);
    }

    @Override
    public Boolean release(String name, String content) {
        return commcontentMapper.release(name,content);
    }
}
